package com.grad.why.studentsystem.mapper;

import com.grad.why.studentsystem.domain.Unknownfaces;
import com.grad.why.studentsystem.domain.UnknownfacesExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UnknownfacesMapper {
    int countByExample(UnknownfacesExample example);

    int deleteByExample(UnknownfacesExample example);

    int deleteByPrimaryKey(String unknownfaceid);

    int insert(Unknownfaces record);

    int insertSelective(Unknownfaces record);

    List<Unknownfaces> selectByExample(UnknownfacesExample example);

    Unknownfaces selectByPrimaryKey(String unknownfaceid);

    int updateByExampleSelective(@Param("record") Unknownfaces record, @Param("example") UnknownfacesExample example);

    int updateByExample(@Param("record") Unknownfaces record, @Param("example") UnknownfacesExample example);

    int updateByPrimaryKeySelective(Unknownfaces record);

    int updateByPrimaryKey(Unknownfaces record);

    List<Unknownfaces> getUnknownFacesListByAdmin(@Param("offset") int offset,@Param("limit") int limit,@Param("search") String search);

    long getUnknownFacesLengthByAdmin(@Param("search") String search);

    List<Unknownfaces> getUnknownFacesListByTeacher(@Param("offset") int offset,@Param("limit") int limit,@Param("search") String search,@Param("bindid") int bindid);

    long getUnknownFacesLengthByTeacher(@Param("search") String search,@Param("bindid") int bindid);

    int checkSidMatchCourseId(@Param("sid") Integer formatterNum,@Param("courseId") int courseId);

    List<Unknownfaces> getUnknownFacesListByOrgStudent(@Param("offset") int offset,@Param("limit") int limit,@Param("search") String search,@Param("bindid") int bindid);

    long getUnknownFacesLengthByOrgStudent(@Param("search") String search,@Param("bindid") int bindid);
}